cmake_minimum_required(VERSION 3.5)

project(gui_booting_setting VERSION 1.0 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

find_package(Qt5 COMPONENTS Widgets Core REQUIRED)

file(GLOB PROJECT_SOURCES CONFIGURE_DEPENDS src/*.cpp include/*.h)

add_executable(
    ${PROJECT_NAME}
    ${PROJECT_SOURCES}
)

target_include_directories(${PROJECT_NAME} PUBLIC include)

target_link_libraries(
    ${PROJECT_NAME} PRIVATE
    Qt5::Widgets
    Qt5::Core
)
